import axios from 'axios'
import { Indicator } from 'mint-ui'

var request = axios.create({
    baseURL:'/take-out'
})

request.interceptors.request.use((config)=>{       //请求拦截器
    Indicator.open({
        text: 'Loading...',
        spinnerType: 'fading-circle'
      });
        return config;
})
request.interceptors.response.use((res)=>{
    Indicator.close()
    return res;
})
export {request}
